#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

#define	MAX_N	30000

int main() {
	
	int N, i, v, max;
	
	vector<int> wins;
	
	cin >> N;
	
	max = 0;
	
	for(i = 0; i < N; i++)
	{
		cin >> v;
		wins.push_back(v);
		if(max < v)
		{
			max = v;
		}
	}
	
	for(i = 0; i < wins.size(); i++)
	{
		if(wins[i] == max)
		{
			cout << (char)(i + 'A');
		}
	}
	
	cout << endl;
	
	return 0;
}
